export function round(number, precision) {
    return Math.round(+number + "e" + precision) / Math.pow(10, precision);
}

export function limitRange(min, max, value) {
    return Math.max(min, Math.min(max, value));
}
